package com.sdry.product.sorting.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdry.product.sorting.entity.SortReceiving;
import com.sdry.product.sorting.mapper.SortReceivingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: info_sdry
 * @description: 入库、收货
 * @author: cb
 * @create: 2020-02-27 16:37
 **/
@Service
@Transactional(rollbackFor = Exception.class)
public class WarehousingServiceImpl extends ServiceImpl<SortReceivingMapper,SortReceiving> implements WarehousingService{

    @Autowired
    private SortReceivingMapper sortReceivingMapper;

    @Override
    public List<SortReceiving> queryWarehousingPage(SortReceiving sortReceiving) {
        return sortReceivingMapper.queryWarehousingPage(sortReceiving);
    }

    @Override
    public Long queryWarehousingTotal(SortReceiving sortReceiving) {
        return sortReceivingMapper.queryWarehousingTotal(sortReceiving);
    }
}
